/**
 * A class for creating instances of portal.layer.querier.Querier
 */
Ext.define('okcapital.layer.QuerierFactory', {

    extend : 'portal.layer.querier.QuerierFactory',

    datasetStore : null,
    cityStore : null,
    
    constructor : function(cfg) {
    	this.datasetStore = cfg.datasetStore;
    	this.cityStore = cfg.cityStore;
    },
    
    /**
     * See parent class for defn
     */
    buildFromKnownLayer : function(knownLayer) {
    	return Ext.create('okcapital.layer.querier.CityRatingQuerier', {
    		datasetStore : this.datasetStore,
    		cityStore : this.cityStore
    	});
    },

    /**
     * See parent class for defn
     */
    buildFromCswRecord : function(cswRecord) {
    	return Ext.create('okcapital.layer.querier.CityRatingQuerier', {
    		datasetStore : this.datasetStore,
    		cityStore : this.cityStore
    	});
    }
});